<template>
  <div class="list">
    <div class="article_item" v-for="v of $store.state.NewList.list" :key="v.art_id">
      <h3 class="van-ellipsis">{{ v.title }}</h3>
      <div class="img_box" v-if="v.cover.type !== 0">
        <img
          v-for="(v2, i2) of v.cover.images"
          :key="i2"
          :src="v2"
          :class="{ w100: v.cover.type === 1, w33: v.cover.type === 3 }"
        />
      </div>
      <!---->
      <div class="info_box">
        <span>{{ v.aut_name }}</span>
        <span>{{ v.comm_count }}评论</span>
        <span>{{ v.pubdate }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'NewList',
  created() {
    this.$store.dispatch('NewList/getList')
  },
}
</script>
